function [] = anm2MAT( dir, fileName)
dir = ['../../res/' dir '/'];
anmFileName = [dir fileName '.anm'];
matFileName = [dir fileName '.mat'];
addpath(genpath('../io'));addpath(genpath('../export'));addpath(genpath('../util'));
[markers, topology] = loadANM(anmFileName);
topology = topology + 1;
numFrames = int16( size(markers, 1) );
numVert = int16( size(markers, 3) );
frames = zeros(numFrames, numVert);
for i = 1:numFrames
    for j = 1:numVert
        frames(i, j) = markers(i, 1, j);
    end 
end % for
save(matFileName, 'frames', 'topology');
end % function

